package utils

import scalaj.http.Http

import scala.collection.immutable.Map

object HttpUtils {

  /**
   * 解析指定的网页
   * @param url
   * @return
   */
  def urlMethod(url:String) : Any ={
    Http(url).header("content-type", "application/json").asString
  }

  /**
   * 支持两个参数
   * @param url
   * @param par1
   * @param par2
   * @return
   */
  def urlMethod(url:String,f1:String,f2:String,maps:Map[String,Any]): Any ={

  }

}
